#include <iostream>
#include <functional>
#include <unistd.h>
#include "Thread_Pool.hpp"

using func_t = std::function<void()>;

void rountine()
{
    std::cout << "正在执行" << std::endl;
    sleep(1);
}

int main()
{
    Thread_Pool::ThreadPool<func_t> th;

    //while(true)
    for(int i = 0;i < 10;++i)
    {
        //th._taskq.push(rountine);
        th.Insert(rountine);
    }

    th.Start();

    return 0;
}